//========encoding:utf-8=========
/*
 * @describe:  三目运算符
 * @author:mhao
 * @copyright:chinasoft.cn
 * @date:2020年3月23日   下午8:21:33
 */
package edu.chinasoft.service;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import edu.chinasoft.domain.Function;
import edu.chinasoft.domain.User;
import edu.chinasoft.mapper.FunctionMapper;

public class FunctionServiceImp implements FunctionService{
	private Logger logger = LoggerFactory.getLogger(FunctionServiceImp.class);
    private FunctionMapper functionMapper;
	@Override
	public List<Function> getFunctionByUser(User user) {
		// TODO Auto-generated method stub
		 logger.debug("FunctionServiceImp>>>getFunctionByUser start ……");
	     List<Function> result = functionMapper.selectTableByUserId(user);
	     logger.debug("FunctionServiceImp>>>getFunctionByUser end ……");
	     return result;
	}
	public FunctionMapper getFunctionMapper() {
        return functionMapper;
    }

    public void setFunctionMapper(FunctionMapper functionMapper) {
        this.functionMapper = functionMapper;
    }

}
